/**
 * ********************************************************
 * <p>
 * Copyright (c) 2018 Baidu.com, Inc. All Rights Reserved
 * <p>
 * ********************************************************
 *
 * @date: 2018年10月26日
 * @author: zhangliuqing01
 * @description:
 */
package com.baidu.mpks.backendweb.ktree.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
public class TreeRelation {

    private Integer id;
    private Integer fileId;
    private Integer nodeId;

    private String createBy;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    public TreeRelation(String userId) {
        this.setCreateBy(userId);
        this.setUpdateBy(userId);
    }
}
